package o;

import android.content.Context;
import com.huawei.appgallery.assistantdock.buoydock.card.bean.BuoyLanternCardBeanBuoy;
import com.huawei.appgallery.assistantdock.buoydock.card.bean.BuoyLanternItem;
import com.huawei.gamebox.plugin.gameservice.bean.GameInfo;
import java.util.ArrayList;
import java.util.List;
import o.biu.a;

public class bih {
    public static List<String> ॱ(Context context, GameInfo gameInfo, boolean z) {
        if (gameInfo == null || context == null) {
            return null;
        }
        List<String> ˎ = ˎ(gameInfo, z);
        ˎ.remove("sound_to_vibrate_effect");
        if (!biu.ˋ().ॱˊ()) {
            ˎ.remove("device_setting");
        }
        if (!biu.ˋ().ᐝॱ() || context.getResources().getConfiguration().orientation == 1) {
            ˎ.remove("virtual_key_setting");
        }
        if (biu.ˋ().ˋ(gameInfo)) {
            return ˎ;
        }
        ˎ.remove("net_optim");
        return ˎ;
    }

    private static List<String> ˎ(GameInfo gameInfo, boolean z) {
        return bim.ˏ(gameInfo, z);
    }

    public static List<a> ˊ(GameInfo gameInfo, boolean z) {
        return bim.ˊ(gameInfo, z);
    }

    public static List<BuoyLanternItem> ˏ(GameInfo gameInfo) {
        ezo ˋ = ezs.ˏ().ˋ(gameInfo);
        if (ˋ == null) {
            return new ArrayList();
        }
        BuoyLanternCardBeanBuoy ͺ = ˋ.ͺ();
        if (ͺ == null) {
            return new ArrayList();
        }
        return ͺ.ˊ();
    }
}
